package com.javadevmap.bean;
//本类用于构建一个spring项目和初步使用bean
public class Product {
    private int id;
    private String name;
    public Product(){

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        System.out.println("setId");
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("setName");
        this.name = name;
    }

    public  Product(int id, String name){
        System.out.println("to Constructor01 succes！ ");
        this.id=id;
        this.name = name;

    }
}
